package com.sptpc.springbootmybatis.dao;

import com.sptpc.springbootmybatis.model.Commodity;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CommodityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Commodity record);

    int insertSelective(Commodity record);

    Commodity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Commodity record);

    int updateByPrimaryKey(Commodity record);

    List<Commodity> selectAll();

    Commodity selectByFicationIdAndName(@Param("categoryId") Long ficationId, @Param("name") String name);
}